/**
* @fileOverview 方案管理接口
* @author wind-lc
* @version 1.0
*/
import { post } from '@/request/http'

// 获取方案列表
const getPageHnPlan = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/getPageHnPlan', params)
}
// 获取方案详细信息
const getHnPlanById = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/getHnPlanById', params)
}
// 删除方案
const deleteBatch = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/deleteBatch', params)
}
// 获取规则列表
const queryHnRuleList = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnRule/queryHnRuleList', params)
}
// 修改方案状态
const updateStatus = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/updateStatus', params)
}
export { getPageHnPlan, getHnPlanById, deleteBatch, queryHnRuleList, updateStatus }
